import { createApp } from 'vue'

import 'normalize.css'
import './assets/css/index.less'

// 全局注册组件
// import ElementPlus from 'element-plus'
import 'element-plus/theme-chalk/index.css'

import App from './App.vue'
import router from './router'
import store, { setupStore } from './store'


import registerApp from './global'
// 解决刷新后 login store data 不存在

const app = createApp(App)
setupStore()
registerApp(app)
app.use(router)
app.use(store)
app.mount('#app')
